<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>视频课程</title>
    <?php require 'templates/common/head.html'; ?>
    <style type="text/css">
        .divleft{width: 10%; float: left; text-align:left; border-right: solid 1px #d5d5d5; margin-right: 2% }
        .divleft1{width: 15%; float: left; text-align:left; border-right: solid 1px #d5d5d5; margin-right: 2% }
        .divright{ width: 30%; float:right; text-align: right;}
    </style>
</head>
<body>


<div class="container-fluid">
    <?php require 'templates/common/nav.html'; ?>
    <div class="panel panel-primary">
        <div class="panel-heading text-center"><h3 class="panel-title">在线人数统计</h3></div>
        <div class="panel-body">
        </div>

        <div class="panel-body">
            <div class="panel-group"   id="accordion" role="tablist" aria-multiselectable="true">

                <div class="panel panel-default" >
                    <div class="panel-heading" style="background-color:#d5d5d5" >
                        <div class="row">
                            <div class="col-xs-4 text-justify" style="width:100%;">
                                <div class="divleft"><b  >用户名</b></div>
                                <div class="divleft" > <b >医院</b></div>
                                <div class="divleft" > <b >在线时长</b></div>
                                <div class="divleft1" > <b >首次进入时间</b></div>
                                <div class="divleft1" > <b >最后进入时间</b></div>
                                <div class="divright" > <b >最后在线时间</b></div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <?php foreach($users as $key => $value):?>
                        <div class="panel-heading"  style=" <?php if($key%2==0){echo "background-color:#DFF0D8;";}else{ echo "border-top: solid 2px #ffffff;";}?>">
                            <div class="row">
                                <div class="col-xs-4 text-justify" style="width:100%;">
                                    <div class="divleft"><span>&nbsp;<?=$value['name'] ?></span></div>
                                    <div class="divleft">&nbsp;<?= $value['hospital'] ?></div>
                                    <div class="divleft">&nbsp;<?= $value['time_length'] ?> 分钟</div>
                                    <div class="divleft1">&nbsp;<?= $value['insert_time'] ?></div>
                                    <div class="divleft1">&nbsp;<?= $value['last_insert_time'] ?></div>
                                    <div class="divright">
                                        &nbsp;<?= $value['最后在线时间'] ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php endforeach; ?>
                </div>

            </div>
        </div>
        <div><?=$page->showPage();?></div>
    </div>

</div>
<?php require 'templates/common/foot.html'; ?>
</body>
</html>